<script type="text/javascript">
	$(document).ready(function(){
		$.validator.messages.required = "";
		$.validator.messages.date = "";
		$.validator.messages.email = "";
		$.validator.messages.number = "";
		$("#FormDangKy").validate();
	});
</script>

<h3>Đăng ký</h3>
<form id="FormDangKy" action="index.php?do=dangky_xuly" method="post">
	<table class="Form">
		<tr>
			<td>Họ và tên:</td>
			<td><input type="text" name="TenNguoiDung" class="required" /><span class="requirefield">*</span></td>
		</tr>
		<tr>
			<td>Tên đăng nhập:</td>
			<td><input type="text" name="TenDangNhap" class="required"/><span class="requirefield">*</span></td>
		</tr>
		<tr>
			<td>Mật khẩu:</td>
			<td><input type="password" name="MatKhau" class="required"/><span class="requirefield">*</span></td>
		</tr>
		<tr>
			<td>Xác nhận mật khẩu:</td>
			<td><input type="password" name="XacNhanMatKhau" class="required"/><span class="requirefield">*</span></td>
		</tr>
		<tr>
			<td>Địa chỉ:</td>
			<td><input type="text" name="DiaChi" class="required"/></td>
		</tr>
		<tr>
			<td>Email:</td>
			<td><input type="text" name="Email" class="required"/><span class="requirefield">*</span></td>
		</tr>
		<tr>
			<td>Điện thoại:</td>
			<td><input type="text" name="DienThoai" class="required"/><span class="requirefield">*</span></td>
		</tr>
		<tr>
			<td>Mã CAPTCHA</td>
			<td>
				<?php
					require_once('recaptchalib.php');
					$publickey = "6LcosukSAAAAAHWL-efF8zkGseVra8v6uqdZLCK7"; // you got this from the signup page
					echo recaptcha_get_html($publickey);
				?>
			</td>
		</tr>
        <tr>
        	<td colspan="2">
            	<p class="requirefields">(*): Các trường bắt buộc phải nhập.</p>
				<input type="submit" value="Đăng ký" />
           </td>
        </tr>
	</table>
	
</form>